﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="CreateEdit.aspx.cs" Inherits="School_CourseDetail_CreateEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
        
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h3>
        Create/Edit</h3>
    <hr />
    <div>
        <asp:ValidationSummary ID="vsCourse" ValidationGroup="CourseDetail" runat="server"
            BackColor="#FFCCFF" BorderStyle="Solid" BorderWidth="1px" ForeColor="#FF3300"
            ShowMessageBox="True" />
    </div>
    <asp:HiddenField ID="hidCourseDetailId" runat="server" Value="-1" />
    <asp:HiddenField ID="hidCompanyId" runat="server" Value="-1" />
    <asp:Label runat="server" ID="lblCompany" Font-Size="Large" Font-Bold="true" /><br />
    <table>
        <tr>
            <td>
                Name:
            </td>
            <td colspan="4">
                <asp:TextBox runat="server" ID="txtCourseDetailName" Width="400px" 
                    MaxLength="250" />
                <asp:RequiredFieldValidator ID="rfvCourseDetailName" runat="server" ErrorMessage="Name is required!"
                    ControlToValidate="txtCourseDetailName" Text="*" ValidationGroup="CourseDetail"
                    ForeColor="#FF3300"></asp:RequiredFieldValidator>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Description:
            </td>
            <td colspan="4">
                <asp:TextBox runat="server" ID="txtDescription" MaxLength="2000" Width="520px" AutoCompleteType="DisplayName"
                    Rows="4" TextMode="MultiLine" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        
        <tr>
            <td>
                Course:</td>
            <td>
                <asp:DropDownList ID="ddlCourseList" runat="server" Width="350px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvCourseList" runat="server" ErrorMessage="Course is required!"
                    ControlToValidate="ddlCourseList" Text="*" ValidationGroup="CourseDetail"
                    ForeColor="#FF3300" InitialValue="-1"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        
        <tr>
            <td>
                Major Field:</td>
            <td>
                <asp:DropDownList ID="ddlMajorFieldList" runat="server" Width="350px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvMajorField" runat="server" ErrorMessage="Major field is required!"
                    ControlToValidate="ddlMajorFieldList" Text="*" ValidationGroup="CourseDetail"
                    ForeColor="#FF3300" InitialValue="-1"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        
        <tr>
            <td>
                Standard Level:</td>
            <td>
                <asp:DropDownList ID="ddlStandardLevelList" runat="server" Width="350px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvCourseName2" runat="server" ErrorMessage="Standard level is required!"
                    ControlToValidate="ddlStandardLevelList" Text="*" ValidationGroup="CourseDetail"
                    ForeColor="#FF3300" InitialValue="-1"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td colspan="4">
                <asp:Label ID="lblMessage" Font-Bold="true" ForeColor="Red" runat="server" Text=""></asp:Label>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnSubmit" ValidationGroup="CourseDetail" CausesValidation="true" runat="server" Text="Submit"
                    OnClick="btnSubmit_Click" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
